package com.tocici.domain.bo;

import com.tocici.domain.Music;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

/**
 * 音乐业务对象 music
 *
 * @author zeratul
 * @date 2025-03-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Music.class, reverseConvertGenerate = false)
public class MusicBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long musicId;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long audioUrl;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long imageUrl;

    /**
     * 单位：秒
     */
    @NotNull(message = "单位：秒不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long duration;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long artistId;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 
     */
    private Integer playCount;

    /**
     * 
     */
    private Long isDeleted;


}
